@echo off
echo 正在检查8080端口占用情况...
netstat -ano | findstr :8080 >nul
if %errorlevel% equ 0 (
    echo 发现8080端口被占用，正在关闭...
    for /f "tokens=5" %%a in ('netstat -ano ^| findstr :8080 ^| findstr LISTENING') do (
        taskkill /f /pid %%a >nul 2>&1
    )
    echo 端口已释放
)

echo 启动导航页服务...
npm start
pause
